package com.pq.controller;


import com.pq.api.StorageApi;
import com.pq.entity.OrderDO;
import com.pq.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author pq
 * @since 2021-06-14
 */
@RestController
@RequestMapping("/order")
public class OrderController {
    @Resource
    private OrderService orderService;


    @GetMapping("/generatorOrder")
    public boolean generatorOrder(){
        return orderService.generatorOrder();
    }
    @GetMapping("/generatorOrderError")
    public boolean generatorOrderError(){
        return orderService.generatorOrderError();
    }

}
